home *** CD-ROM | disk | FTP | other *** search
INI File | 1995-01-05 | 11.1 KB | 304 lines |
- [Identification]
- OptionType = VIDEO
- [MapOfOptions]
- "InteGraphics IGA1680" = "InteGraphics IGA1680 640x480x4x60"
- [MiniportDrivers]
- iga1680 = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_IGNORE, 11, {vga,vga256}, 1 , "%SystemRoot%\System32\IoLogMsg.dll" , 7
- [Identify]
- read-syms Identification
- set Status = STATUS_SUCCESSFUL
- set Identifier = $(OptionType)
- set Media = #("Source Media Descriptions", 1, 1)
- Return $(Status) $(Identifier) $(Media)
- [ReturnOptions]
- set Status = STATUS_FAILED
- set OptionList = {}
- set OptionTextList = {}
- set LanguageList = ^(LanguagesSupported, 1)
- Ifcontains(i) $($0) in $(LanguageList)
- goto returnoptions
- else
- set Status = STATUS_NOLANGUAGE
- goto finish_ReturnOptions
- endif
- returnoptions = +
- set OptionList = ^(Options, 0)
- set OptionTextList = ^(OptionsText$($0), 1)
- set Status = STATUS_SUCCESSFUL
- finish_ReturnOptions = +
- Return $(Status) $(OptionList) $(OptionTextList)
- [MapToSupportedOption]
- set Status = STATUS_FAILED
- set MappedOption = $($0)
- set OptionList = ^(MapOfOptions, 0)
- ifcontains $($0) in $(OptionList)
- set MappedOption = #(MapOfOptions, $($0), 1)
- else
- set MappedOption = "VGA"
- endif
- set Status = STATUS_SUCCESSFUL
- Return $(Status) $(MappedOption)
- [ServicesEntry]
- CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
- [InstallOption]
- set Status = STATUS_FAILED
- set DrivesToFree = {}
- set Option = $($1)
- set SrcDir = $($2)
- set AddCopy = $($3)
- set DoCopy = $($4)
- set DoConfig = $($5)
- set LanguageList = ^(LanguagesSupported, 1)
- Ifcontains(i) $($0) in $(LanguageList)
- else
- set Status = STATUS_NOLANGUAGE
- goto finish_InstallOption
- endif
- read-syms Strings$($0)
- set OptionList = ^(Options, 0)
- ifcontains $(Option) in $(OptionList)
- else
- goto finish_InstallOption
- endif
- set OptionList = ""
- set MiniportDriver = #(Options, $(Option), 1)
- set BitsPerPel = #(Options, $(Option), 2)
- set XResolution = #(Options, $(Option), 3)
- set YResolution = #(Options, $(Option), 4)
- set VRefresh = #(Options, $(Option), 5)
- set Interlaced = #(Options, $(Option), 6)
- set Type = $(#(MiniportDrivers, $(MiniportDriver), 1))
- set Group = #(MiniportDrivers, $(MiniportDriver), 2)
- set ErrorControl = $(#(MiniportDrivers, $(MiniportDriver), 3))
- set Tag = #(MiniportDrivers, $(MiniportDriver), 4)
- set InstalledDisplays = #(MiniportDrivers, $(MiniportDriver), 5)
- set VgaCompatible = #(MiniportDrivers, $(MiniportDriver), 6)
- set EventMessageFile = #(MiniportDrivers, $(MiniportDriver), 7)
- set TypesSupported = #(MiniportDrivers, $(MiniportDriver), 8)
- read-syms ServicesEntry
- detect ServicesEntry
- installtheoption = +
- ifstr(i) $(AddCopy) == "YES"
- set DoActualCopy = NO
- set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
- LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
- ifstr(i) $(STATUS) == NO
- set DoActualCopy = YES
- goto addfiles
- endif
- ForListDo $(InstalledDisplays)
- set FileToCheck = #(Files-DisplayDLLs, $($), 2)
- LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
- ifstr(i) $(STATUS) == NO
- set DoActualCopy = YES
- endif
- EndForListDo
- addfiles = +
- ifstr(i) $(DoActualCopy) == NO
- shell "subroutn.inf" DriversExist $($0) $(String1)
- ifint $($ShellCode) != $(!SHELL_CODE_OK)
- Debug-Output "VIDEO.INF: shelling DriversExist failed"
- goto finish_InstallOption
- endif
- ifstr(i) $($R0) == STATUS_CURRENT
- else-ifstr(i) $($R0) == STATUS_NEW
- set DoActualCopy = YES
- else-ifstr(i) $($R0) == STATUS_USERCANCEL
- Debug-Output "VIDEO.INF: User cancelled video installation"
- goto finish_InstallOption
- else
- Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
- goto finish_InstallOption
- endif
- endif
- ifstr(i) $(DoActualCopy) == YES
- shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
- ifint $($ShellCode) != $(!SHELL_CODE_OK)
- Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
- goto finish_InstallOption
- endif
- ifstr(i) $($R0) == STATUS_SUCCESSFUL
- set SrcDir = $($R1)
- ifstr(i) $($R2) != ""
- set DrivesToFree = >($(DrivesToFree), $($R2))
- endif
- else
- Debug-Output "VIDEO.INF: User cancelled asking source."
- goto finish_InstallOption
- endif
- install Install-AddCopyOption
- ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
- Debug-Output "VIDEO.INF: Adding video files to copy list failed"
- goto finish_InstallOption
- endif
- else
- set DoCopy = NO
- endif
- endif
- ifstr(i) $(DoCopy) == "YES"
- read-syms ProgressCopy$($0)
- install Install-DoCopyOption
- ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
- Debug-Output "Copying files failed"
- goto finish_InstallOption
- else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
- set Status = STATUS_USERCANCEL
- goto finish_InstallOption
- endif
- endif
- ifstr(i) $(DoConfig) == "YES"
- shell "registry.inf" CheckSetupModify
- ifint $($ShellCode) != $(!SHELL_CODE_OK)
- goto finish_InstallOption
- endif
- ifstr(i) $($R0) != STATUS_SUCCESSFUL
- goto finish_InstallOption
- endif
- set ServiceNode = $(MiniportDriver)
- set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
- set ServicesValues = { +
- {Type, 0, $(!REG_VT_DWORD), $(Type) }, +
- {Start, 0, $(!REG_VT_DWORD), $(!SERVICE_SYSTEM_START) }, +
- {Group, 0, $(!REG_VT_SZ), $(Group) }, +
- {ErrorControl, 0, $(!REG_VT_DWORD), $(ErrorControl) }, +
- {Tag, 0, $(!REG_VT_DWORD), $(Tag) }, +
- {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary) } +
- }
- set ParametersValues = { +
- {InstalledDisplayDrivers, 0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
- {VgaCompatible, 0, $(!REG_VT_DWORD), $(VgaCompatible) }, +
- {DefaultSettings.BitsPerPel, 0, $(!REG_VT_DWORD), $(BitsPerPel) }, +
- {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD), $(XResolution) }, +
- {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD), $(YResolution) } +
- }
- ifstr(i) $(VRefresh) != ""
- set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
- set ParametersValues = >($(ParametersValues), $(VRefreshValue))
- endif
- ifstr(i) $(Interlaced) != ""
- set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
- set ParametersValues = >($(ParametersValues), $(InterlacedValue))
- endif
- set DeviceValues = {}
- set EventLogValues = { +
- {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
- {TypesSupported, 0, $(!REG_VT_DWORD), $(TypesSupported) } +
- }
- shell "registry.inf" MakeServicesEntry $(ServiceNode) +
- $(ServicesValues) +
- $(ParametersValues) +
- $(DeviceValues) +
- $(EventLogValues) +
- Device0
- ifint $($ShellCode) != $(!SHELL_CODE_OK)
- Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
- goto finish_InstallOption
- endif
- ifstr(i) $($R0) != STATUS_SUCCESSFUL
- Debug-Output "MakeServicesEntry failed for video"
- goto finish_InstallOption
- endif
- ifstr(i) $(CurrentEntry) != $(MiniportDriver)
- ifstr(i) $(CurrentEntry) != VGA
- ifstr(i) $(CurrentEntry) != ""
- shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
- ifint $($ShellCode) != $(!SHELL_CODE_OK)
- Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
- goto errorconfig
- endif
- ifstr(i) $($R0) != STATUS_SUCCESSFUL
- Debug-Output "DisableServices entry failed"
- endif
- endif
- endif
- endif
- goto configdone
- errorconfig = +
- ifstr(i) $(CurrentEntry) != $(MiniportDriver)
- shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
- ifstr(i) $(CurrentEntry) != ""
- shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
- endif
- endif
- goto finish_InstallOption
- configdone = +
- endif
- set Status = STATUS_SUCCESSFUL
- finish_InstallOption = +
- ForListDo $(DrivesToFree)
- LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
- EndForListDo
- Return $(Status)
- [Install-AddCopyOption]
- set STF_VITAL = ""
- AddSectionKeyFileToCopyList Files-DisplayMiniportDrivers +
- $(MiniportDriver) +
- $(SrcDir) +
- $(!STF_WINDOWSSYSPATH)\drivers
- ForListDo $(InstalledDisplays)
- AddSectionKeyFileToCopyList Files-DisplayDLLs +
- $($) +
- $(SrcDir) +
- $(!STF_WINDOWSSYSPATH)
- EndForListDo
- exit
- [Install-DoCopyOption]
- CopyFilesInCopyList
- exit
- [Source Media Descriptions]
- 1 = "Windows NT Setup Disk #1" , TAGFILE = disk1
- 2 = "Windows NT Setup CD-ROM Disk" , TAGFILE = disk2
- [ProductType]
- STF_PRODUCT = Winnt
- STF_PLATFORM = I386
- [Files-DisplayDLLs]
- ati = 2,ATI.DLL , SIZE=115200
- framebuf = 2,FRAMEBUF.DLL , SIZE=54784
- s3 = 2,S3.DLL , SIZE=147456
- vga = 2,VGA.DLL , SIZE=179200
- vga256 = 2,VGA256.DLL , SIZE=133632
- xga = 2,XGA.DLL , SIZE=66048
- [Files-DisplayMiniportDrivers]
- ati = 2,ATI.SYS , SIZE=63488
- cirrus = 2,CIRRUS.SYS , SIZE=34304
- dell_dgx = 2,DELL_DGX.SYS , SIZE=17408
- iga1680 = 2,IGA1680.SYS , SIZE=32256
- ncr77c22 = 2,NCR77C22.SYS , SIZE=33280
- qv = 2,QV.SYS , SIZE=47616
- s3 = 2,S3.SYS , SIZE=25600
- trident = 2,TRIDENT.SYS , SIZE=33280
- v7vram = 2,V7VRAM.SYS , SIZE=35328
- vga = 2,VGA.SYS , SIZE=29184
- wdvga = 2,WDVGA.SYS , SIZE=29696
- xga = 2,XGA.SYS , SIZE=26624
- [LanguagesSupported]
- ENG
- [OptionsTextENG]
- "IGS IGA1680 640x480x8x00" = "InteGraphics IGA1680 640x480 256 colors"
- "IGS IGA1680 800x600x8x00" = "InteGraphics IGA1680 800x600 256 colors"
- "IGS IGA1680 1024x768x8x00" = "InteGraphics IGA1680 1024x768 256 colors"
- "IGS IGA1680 1024x768x8x00I" = "InteGraphics IGA1680 1024x768 256 colors, Interlaced"
- [Options]
- "IGS IGA1680 640x480x8x00" = iga1680, 8, 640, 480 , 0 , 0
- "IGS IGA1680 800x600x8x00" = iga1680, 8, 800, 600 , 0 , 0
- "IGS IGA1680 1024x768x8x00" = iga1680, 8, 1024, 768 , 0 , 0
- "IGS IGA1680 1024x768x8x00I" = iga1680, 8, 1024, 768 , 0 , 1
- [ProgressCopyENG]
- ProCaption = "Windows NT Setup"
- ProCancel = "Cancel"
- ProCancelMsg = "Windows NT is not correcly installed. Are you sure you want "+
- "to cancel copying files?"
- ProCancelCap = "Setup Message"
- ProText1 = "Copying:"
- ProText2 = "To:"
- [StringsENG]
- String1 = "Display"
- String2 = "Please enter the full path to the Windows NT Display "+
- "driver files. If you want to install files from the "+
- "original Setup floppy disks, type a drive letter (such "+
- "as A:) and Setup will prompt you for the correct disk. "+
- "Then choose Continue."
-
-
-